import turtle

t = turtle.Turtle()
win = turtle.Screen()


def spiral(t, line_len):
    if line_len > 0:
        t.forward(line_len)
        t.right(90)
        spiral(t, line_len - 1)


spiral(t, 100)
win.exitonclick()
